package com.jack.hiltsimple.inter_provide_qualifier

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import javax.inject.Qualifier

/**
 * @创建者 Jack
 * @创建时间 2025-08-21 9:47
 * @描述
 */
@Module
@InstallIn(ActivityComponent::class)
object DiInterfaceImplModule1 {
    @Qualifier
    @Retention(AnnotationRetention.RUNTIME)
    annotation class diInterfaceImpl31

    @Qualifier
    @Retention(AnnotationRetention.RUNTIME)
    annotation class diInterfaceImpl32

    @diInterfaceImpl31
    @Provides
    fun provideDiImpl1(): DiInterface3 {
        return DiInterfaceImpl31()
    }

    @diInterfaceImpl32
    @Provides
    fun provideDiImpl2(): DiInterface3 {
        return DiInterfaceImpl32()
    }
}